package com.hongdee.insurance.company.service;

import com.hongdee.insurance.company.entity.TInsuranceCompany;

import java.util.List;
import java.util.Map;

/**
 * Created by Mr. Xu on 2017/4/24.
 */
public interface ITInsuranceCompanyService {

    /**
     * 新增或者修改保险公司
     *
     * @param data
     * @return
     * @throws Exception
     */
    public TInsuranceCompany saveOrUpdate(TInsuranceCompany data, String uid) throws Exception;

    /**
     * 保险公司分页查询
     *
     * @param uid
     * @param data
     * @return
     * @throws Exception
     */
    public Map page(String uid, String start, String limit, Map data) throws Exception;

    /**
     * 保险公司停用启用
     *
     * @param id
     * @param status
     * @throws Exception
     */
    public void update(String id, String status) throws Exception;

    /**
     * 保险公司明细
     *
     * @param id
     * @return
     * @throws Exception
     */
    public Map info(String id) throws Exception;


    /**
     * @return
     * @throws Exception
     * @desc 保险公司下拉列表
     * @author 术洪超
     */
    public List<Map> combo(String uid,String storeCode) throws Exception;

    /**
     * 获取保险公司详情
     * @param id
     * @return
     */
    public TInsuranceCompany getInfo(String id) throws Exception;

    /**
     * 获得所有的保险公司
     * @return
     * @throws Exception
     */
    public List getCompanys() throws Exception;
    /**
     * 根据出单日期、4s店信息 获得应用于当前4s店所在城市的合同号信息
     * @param insuarnceCompanyId
     * @param outOrderDate
     * @param uid
     * @param companyId
     * @return
     * @throws Exception
     */
    public Map<String,Object> getInsuranceCompanyInfo(String insuarnceCompanyId,String outOrderDate,String uid,
                                                      String companyId) throws Exception;

}
